<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="../css/stylesite.css" medial="all" />
<link rel="stylesheet" type="text/css" href="../css/styleleft.css" medial="all" />
	<script src="../js/jquery-1.8.2.min.js" ></script>
	<script src="../js/image.js" type="text/javascript"></script>
        <script src="../js/jsearch.js" type="text/javascript"></script>  
	<script type="text/javascript">
	$(function(){
		$(".button a").click(function(){
		$(this).parent().addClass('current');
		$(this).siblings().removeClass('current');
		});
		});
	</script>
<title>Chi tiết sản phẩm</title>
</head>

<body class="pagebody">
	<div id="wrapwebsite" >
				<?php 
			include('../element/header.php');?>
			<div class="imagestop"></div>
			<div class="wrapmaincontent">
		<?php
		include('../element/leftside.php');
		?>
		<div class="center-leftmargin">
                    <div class="moduletitle"><h2> Xem chi tiết sản phẩm</h2></div>
                    <div id="maincontent">
                       <?php
                       include 'Search_model.php';
                        if(isset($_GET['ProductID']))
                        {
                            $productID=$_GET['ProductID'];
                           $arr_detail=  searchDetail($productID);
                           foreach ($arr_detail as $detail) {                            
                      ?>
                   <table class="" width="700px" border="0" cellspacing="0" cellpadding="0">
                     <tr>
                         <th  rowspan="4" scope="row" width="180px">&nbsp;<img width="133px" height="180px" src="<?php echo  $detail[3]; ?>"></th>
                       <td>&nbsp;<span style="color:#BF0000;font-size: 18px"><?php echo $detail[1];?></span></td>
                     </tr>
                     <tr>
                         <td>&nbsp;<span style="color:#BF0000 ;font-size: 16px " >Mô tả:</span> <?php echo $detail[2] ;?></td>
                     </tr>
                     <tr>
                       <td>&nbsp;
                           <span style="color:#BF0000;font-size: 16px " >Giá bán: </span><?php echo $detail[4];?> VND
                           <?php
                                if($detail['9']<>0)
                                    echo ' <span style="color:#BF0000;font-size: 16px " > -- Khuyến mãi: </span>'. $detail[9].'%';
                           ?>
                       </td>
                     </tr> 
                      <tr>
                          <td>&nbsp;
                              <?php 
                                if($detail[5]!=NULL)
                                {
                              ?>
                              <span style="color:#BF0000;font-size: 16px " >Kích cỡ:</span><?php echo $detail[5];?>
                              <?php 
                                }?>
                          </td>
                     </tr>
                      <tr>
                         <td>&nbsp;<span style="color:#00007D ;font-size: 16px " ><a>Thêm vào giỏ hàng</a></span></td>
                     </tr>
                   </table>
                        <?php
                           }
                        }                       
                       ?> 
                    </div>
		</div>
		</div> 
		
		<?php include('../element/footer.php'); ?>
</div>
</body>
</html>

 